package com.lhh.springcommon.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhh.springcommon.entity.Collect;
import com.lhh.springcommon.entity.Follow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhh.springcommon.entity.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李厚航
 * @since 2025-02-25
 */
@Mapper
public interface FollowMapper extends BaseMapper<Follow> {

    /**
     * 分页查询粉丝信息
     * @param follow
     * @param page
     * @return
     */
    Page<UserVO> queryPageFansVO(@Param("follow") Follow follow, Page<Follow> page);

    /**
     * 分页查询关注信息
     * @param follow
     * @param page
     * @return
     */
    Page<UserVO> queryPageFollowVO(@Param("follow") Follow follow, Page<Follow> page);

}
